import {getCurrentCompanyName, getCurrentRouteName} from "@/composition/useRouterLink.js";

export const checkSameRoute = (item) => {
  if(item.type !== 'company' && item.name === getCurrentRouteName()) {
    return true;
  }
  if(item.type === 'company' && item.name === getCurrentRouteName() && item.companyName === getCurrentCompanyName()) {
    return true;
  }
  return false;
};
